package com.fasteat.menu.service.client;

import com.fasteat.common.entity.Result;
import com.fasteat.menu.handler.UserFallback;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.List;

/**
 * @author run
 * @since 2021/2/21 11:38
 */
@FeignClient(value = "fasteat-authority-service",fallback = UserFallback.class)
public interface UserClient {

    @PostMapping("/authority/user/getAuthorVoByIds")
    public Result getAuthorVos(@RequestBody List<String> authorIds);
}
